package com.uqbar.game.stateSpacecraft;

import java.util.List;

import com.uqbar.game.Bullet;
import com.uqbar.game.Spacecraft;
import com.uqbar.vainilla.DeltaState;
import com.uqbar.vainilla.appearances.Sprite;

public class StateDestroy extends StateSpacecraft {

	private double t1 = 0;
	private double t2 = 0;
	
	public StateDestroy(Spacecraft spacecraft) {
		super(spacecraft);
		this.spacecraft.initializeAnimationExploit();
	}

	@Override
	public void moveSpacecraft(DeltaState deltaState) {
		this.spacecraft.setAppearance(this.spacecraft.getSpacecraftAnimation());
		if(t1+100 == t2){
			this.spacecraft.setState(new StateInvisibility(spacecraft));
		}
		t2++;
	}

	@Override
	public Sprite getImage() {
		return null;
	}
	
	public List<Bullet> getBullets() {
		return null;
	}

}
